#include <stdio.h>
#include <stdlib.h>
main()
{    	   
    char string[81];
    int i=0,max;
    printf("Input a string:");	//1
    printf("\n");
    gets(string);
    max=string[i];		//1
    while(string[i]!='\0')		//2
    {    	   
        i=i+1;
        if(string[i]>max)		//2
           max=string[i];		//1
    }
    printf("The largest character of \"%s\" is \'%c\' ,The ASCII is %d.",string,max,max);	//2
}    